package actions;

import com.jme.input.action.InputActionEvent;
import com.jme.input.action.InputActionInterface;
import com.jme.math.Vector3f;
import com.jmex.physics.DynamicPhysicsNode;

public class Avanzar implements InputActionInterface {

	private DynamicPhysicsNode dynamicNode;

	public Avanzar(DynamicPhysicsNode dynamicNode) {
		this.dynamicNode = dynamicNode;
	}

	@Override
	public void performAction(InputActionEvent evt) {
		System.out.print("h");

		dynamicNode.addForce(new Vector3f(500, 0, 0));
	}

}
